4HTML Logo







4HTML
Learn HTML
HTML Tags
Learn JavaScript
JavaScript Objects
Finished Scripts



<IFRAME> HTML Tag Reference


Independent "floating" frame.
Version Introduced: 4


HTML Attributes for the <IFRAME> Tag

HTML Tag Attributes Version
ALIGN=LEFT/CENTER/RIGHT
Alignment relative to browser window.
4
BORDER="n"
The thickness of the border in pixels.
IE4
BORDERCOLOR="color"
Border color.
IE4
FRAMEBORDER=0/1
0=invisible/1=visible
4
FRAMESPACING="n"
The space between other floating frames in pixels.
IE4
HEIGHT="n"
The height of the frame in pixels.
4
HSPACE="n"
The space left and right of the document within the frame.
IE4
ID=""
Apply the ID's CSS properties to this tag.
4
MARGINHEIGHT="n"
The space top and bottom of the document within the frame.
4
MARGINWIDTH="n"
The margins left and right within the document.
4
NAME=""
The name of the frame.
4
NORESIZE
Prevents users from being able to change the size of the frame.
IE
SCROLLING=YES/NO
Scrollbars.
4
SRC="url"
Source of document to go into the frame.
4
STYLE=""
Use specific CSS properties for this tag only.
4
WIDTH="n"
The width of the frame in pixels.
4
VSPACE=n"
The margins top and bottom within the document
IE4


JavaScript Event Handlers for the <IFRAME> Tag

Event Handlers Description Version
onClick
User clicked on the object.
1.0
onDblClick
User double-clicks on the object.
1.2
onKeyDown
User presses a key down.
1.2
onKeyPress
User presses and holds a key down.
1.2
onKeyUp
User releases a key.
1.2
onMouseDown
User clicks the mouse.
1.2
onMouseMove
User moves the mouse.
1.2
onMouseOut
Mouse moves off the object.
1.1
onMouseOver
Mouse moves over the object.
1.0
onMouseUp
User releases the mouse click.
1.2








































Home | Learn HTML | Learn JavaScript | Finished Scripts | Contact Us



© 2010 Copyright 4HTML. All rights reserved.